package com.itools.core.ucenter.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;

import java.time.LocalDateTime;

import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * <p>
 * 
 * </p>
 *
 * @author XUCHANG
 * @since 2021-07-23
 */
@Data
@TableName("itools_role_resource_ref")
@ApiModel(value="RoleResourceRef对象", description="")
public class RoleResourceRef implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "用户ID")
    @TableId(value = "id", type = IdType.UUID)
    private String id;

    @ApiModelProperty(value = "创建时间")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "创建用户")
    private String createUserId;

    @ApiModelProperty(value = "上次修改时间")
    private LocalDateTime lastUpdateTime;

    @ApiModelProperty(value = "上次修改用户")
    private String lastUpdateUserId;

    @ApiModelProperty(value = "应用ID")
    private String applicationId;

    @ApiModelProperty(value = "角色名称")
    private String roleId;

    @ApiModelProperty(value = "资源ID")
    private String resourceId;

    @ApiModelProperty(value = "角色资源状态【1：有效；2：超级管理员或父级置为失效；3：权限拥有者置为失效】")
    private Integer status;

    @ApiModelProperty(value = "角色资源类型【1：数据权限项；2：资源】")
    private Integer type;

}
